package controllers

import (
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
	"github.com/gomodule/redigo/redis"
	"individual/models"
)

type BaseController struct {
	beego.Controller
	O    orm.Ormer
	Pool redis.Conn
}

func (p *BaseController) Prepare() {
	p.O = orm.NewOrm()
	p.Pool = models.Conn()
}
